/*
 * menu.h
 *
 *  Created on: 05-May-2009
 *      Author: catchthealien
 */

#ifndef MENU_H_
#define MENU_H_

#include "framelimiter.h"

namespace cta {

class menu {
private:
	short menu_state_;
	short police_pos_;
	int screenx_;
	int screeny_;

	csSimplePixmap* police_;
	csSimplePixmap* start_single_;
	csSimplePixmap* start_multi_;
	csSimplePixmap* stars_;
	csSimplePixmap* exit_;

	// Sound
	csRef<iSndSysWrapper> sndwrapper;
	csRef<iSndSysStream> sndstream;
	csRef<iSndSysSource> sndsrc;

	framelimiter keydelay;

public:
	menu();
	bool Init();
	bool Run();
	bool Draw();
	bool End();
	void LoadPixmap();
	bool LoadMusic();
	virtual ~menu();
    short getState() const
    {
        return menu_state_;
    }

};

}

#endif /* MENU_H_ */
